package com.ruoyi.system.domain.construction;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租赁服务规格对象 rental_label
 * 
 * @author 张少丛
 * @date 2021-01-09
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RentalLabel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签ID */
    private Integer labelId;

    /** 租赁服务主键ID */
    @Excel(name = "租赁服务主键ID")
    private Integer rentalId;

    /** 租赁图片主键ID */
    @Excel(name = "租赁图片主键ID")
    private Integer rentalPicId;

    /** 标签名称 */
    @Excel(name = "标签名称")
    private String labelName;

    /** 标签价格 */
    @Excel(name = "标签价格")
    private BigDecimal labelPrice;

    /** 0上架,1下架 */
    @Excel(name = "0上架,1下架")
    private String labelStatus;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    private RentalService rentalService;

    private RentalPic rentalPic;

    public void setLabelId(Integer labelId) 
    {
        this.labelId = labelId;
    }

    public Integer getLabelId() 
    {
        return labelId;
    }
    public void setRentalId(Integer rentalId) 
    {
        this.rentalId = rentalId;
    }

    public Integer getRentalId() 
    {
        return rentalId;
    }
    public void setRentalPicId(Integer rentalPicId) 
    {
        this.rentalPicId = rentalPicId;
    }

    public Integer getRentalPicId() 
    {
        return rentalPicId;
    }
    public void setLabelName(String labelName) 
    {
        this.labelName = labelName;
    }

    public String getLabelName() 
    {
        return labelName;
    }
    public void setLabelPrice(BigDecimal labelPrice) 
    {
        this.labelPrice = labelPrice;
    }

    public BigDecimal getLabelPrice() 
    {
        return labelPrice;
    }
    public void setLabelStatus(String labelStatus) 
    {
        this.labelStatus = labelStatus;
    }

    public String getLabelStatus() 
    {
        return labelStatus;
    }
    public void setModifiedTime(Date modifiedTime) 
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime() 
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("labelId", getLabelId())
            .append("rentalId", getRentalId())
            .append("rentalPicId", getRentalPicId())
            .append("labelName", getLabelName())
            .append("labelPrice", getLabelPrice())
            .append("labelStatus", getLabelStatus())
            .append("modifiedTime", getModifiedTime())
            .toString();
    }
}
